package org.example;

import java.io.*;
import java.util.HashMap;
import java.util.Map;

//2.4	人员离职(A04)
public class PostDemoA04 {

    public static void main(String[] args) {
        // 构建嵌套JSON结构
        Map<String, Object> data = new HashMap<>();
        data.put("id", "A04");
        data.put("empid", "8888");
        data.put("outdate", "20250515");
        data.put("outsort", "0");
        data.put("outcause", "0");

        try {
// {"data":{"outdate":"20250515","empid":"8888","outcause":"0","id":"A04","outsort":"0"},"openid":"000001","timestamp":"20250427180753"}
            String response = sendJsonPostRequest.sendJsonPostRequest(data);
            System.out.println("响应内容：\n" + response);
// {"errcode":"0","msg":"成功","data":[{"ErrCode":"0","ErrStr":""}]}
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}



